//
//  YZPigDeathDetailRecordModel.m
//  VET
//
//  Created by YZ on 2018/7/19.
//  Copyright © 2018年 YZ. All rights reserved.
//

#import "YZPigDeathDetailRecordModel.h"
#import "NSDate+Category.h"

@implementation YZPigDeathDetailRecordModel

+(NSDictionary *)mj_replacedKeyFromPropertyName
{
    return @{
             @"rid":@"id",
             };
}

+ (NSDictionary *)mj_objectClassInArray
{
    return @{
             @"attachmentList":@"YZPigDeathDetailRecordAttachmentModel"
             };
}


- (NSArray<UIImage *> *)currentImgs
{
    NSMutableArray *arr = [NSMutableArray array];
    for (YZPigDeathDetailRecordAttachmentModel *model in self.attachmentList) {
        [arr addObject:model.currentImg];
    }
    return arr;
}

- (NSString *)gmtModified
{
    NSDate *date = [NSDate dateWithTimeIntervalSince1970:_gmtModified.integerValue];
    return [date localDateStringWithFomaterTpye:kYZDateFomaterTpyeYYMMDDHHMM];
}

- (NSString *)gmtCreated
{
    NSDate *date = [NSDate dateWithTimeIntervalSince1970:_gmtCreated.integerValue];
    return [date localDateStringWithFomaterTpye:kYZDateFomaterTpyeYYMMDDHHMM];;
}
@end
